<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="renderer" content="webkit">
  <title><?php $this->archiveTitle(array(
            'category'  =>  _t('分类 %s 下的文章'),
            'search'    =>  _t('包含关键字 %s 的文章'),
            'tag'       =>  _t('标签 %s 下的文章'),
            'author'    =>  _t('%s 发布的文章')
        ), '', ' - '); ?><?php $this->options->title(); ?></title>
  <link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">
  <link rel="icon" href="/favicon.png" type=" image/png">
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

  <?php $this->header('keywords=&generator=&template=&pingback=&xmlrpc=&wlw='); ?>
</head>
<body>
  <header class="row">
    <div class="container box">
      <div id="site-info" class="box">
        <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
        <small><?php $this->options->description() ?></small>
        <label for="expand-toggle" id="expand">三</label>
      </div>
    </div>
    <div id="top-nav" class="container box">
      <input type="checkbox" id="expand-toggle" />
      <nav id="navbar" class="box expandable">
        <a class="nav-item" href="<?php $this->options->siteUrl(); ?>">首页</a>
        <?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
        <?php while($pages->next()): ?>
        <a class="nav-item" href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a>
        <?php endwhile; ?>
        
        <?php $this->widget('Widget_Metas_Category_List')
               ->parse('<a class="nav-item" href="{permalink}">{name}</a>'); ?>
        <form class="nav-item" method="post" action="<?php $this->options->siteUrl(); ?>" role="search">
          <input type="text" name="s" class="text clear" placeholder="输入关键字搜索">
          <button type="submit" class="submit clear">搜索</button>
        </form>
        <label for="expand-toggle" id="close">x</label>
      </nav>
    </div>
  </header>